package com.urfresh.sp.flume.dto.v2;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * Created by urfresh.mark on 2016/10/10.
 */
public class SubmitOrder extends AppBaseInfo{

    /**
     * 提交订单，用户点击提交订单的按钮
     */
    static final String SUBMIT_ORDER = "SUBMIT_ORDER";
    /**
     * 进入支付页面，app加载支付页面完毕
     */
    static final String PAGE_ON_LOAD = "PAGE_ON_LOAD";
    /**
     * 支付订单，用户点击支付按钮
     */
    static final String PRE_PAY = "PRE_PAY";

    static final String PAID = "PAID";

    @JSONField(ordinal = 6)
    @ApiModelProperty(value = "操作行为,SUBMIT_ORDER/PAGE_ON_LOAD/PRE_PAY/PAID", required = true)
    String action;

    @JSONField(ordinal = 7)
    @ApiModelProperty(value = "订单编号", required = true)
    String orderId;

    List<Products> products;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public List<Products> getProducts() {
        return products;
    }

    public void setProducts(List<Products> products) {
        this.products = products;
    }
}
